A judge ruled the prosecution would have to prove that Army PFC Bradley Manning had “reason to believe” the information would aid al-Qaeda and other terrorist groups.