A federal judge questioned whether the Trump administration appropriately reviewed safety conditions in Haiti before ending protections for people from the Caribbean nation.