MoD defeated in freedom to protest case