Federal judge rules policy that allows for rapid expulsions