A second federal judge has extended a block barring the Trump administration from freezing grants and loans potentially totalling trillions of dollars.