A federal judge on Monday extended an order blocking the Trump administration from enforcing a sweeping freeze on federal grants.