The Trump administration has kept withholding foreign aid despite a court order and must at least temporarily restore the funding to programmes worldwide, a federal judge said on Thursday.