US judge orders funding freeze on aid programs lifted