The legislation comes after Democrats fled the state earlier this month to prevent the passage of a new congressional map.