Judge rules Trump administration can’t require states to help on immigration to get transport money