Trump suffers second defeat as revised travel ban on hold