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