A US judge has blocked another Trump administration bid to place new conditions on grants that would align funding with the Republican president's priorities.