Governor Greg Abbott is expected to quickly sign it into law, though Democrats have vowed to challenge it in court.