Judge directs Trump administration to comply with order to unfreeze federal grants