A federal judge in Rhode Island has placed a temporary restraining order on the Trump administration's planned freeze on federal funds and grants.