The Democratic governor had vetoed the 12-week ban, but the Senate, with a Republican supermajority, voted to override it. The bill now goes to the House.