Trump suffers two major legal losses in one day as paths of escape narrow