The Pentagon said it received an anonymous $130 million donation to pay the military during the U.S. government shutdown, a move the administration might not legally be able to carry out.