A judge has blocked the renaming and closure of the Kennedy Center after President Trump added his name to the building.