Thousands of migrants gathered along the Mexican side of the southern border Wednesday, camping outside or packing into shelters as they waited for the U.S. Supreme Court to decide whether and when to lift pandemic-era restrictions that have prevented many from seeking asylum.