The decision goes against a lower court judge's ruling that the government had to pay aid contractors.