The decision, which stated federal agencies lacked authority to pause funding, follows the president’s executive order to freeze the money on his first day in office.