That was only passed a year _after_ DOGE had already gutted USAID entirely, so the Executive branch was acting outside the authority of Congress (or in contravention with Congress) when it gutted USAID in early 2025.
There was a few months of overhang, but the Supreme Court ruled that the administration had to pay out billions of dollars that were already allocated to contracts during that period.