A compromise struck by Massachusetts state legislators Wednesday aimed at combining a House and Senate version of a transgender rights bill was approved by the two bodies Thursday. 

The approved law would allow transgender individuals to use the bathrooms that correspond to their gender identity, as well as banning discrimination in public accommodations like pools and restaurants. 

The 117-36 House vote means that its protections will go into effect on October 1, assuming Gov. Charlie Baker signs the bill. The state Senate approved the negotiated compromise on a voice vote. 

Baker has previously indicated his support for the House’s proposal, but a spokesperson said he would continue to carefully review the newly negotiated bill. 

"Governor Baker believes no one should be discriminated against based on gender identity and looks forward to carefully reviewing the final bill," Baker spokeswoman Lizzy Guyton said in a statement.

The bill could reach Baker’s desk this week, according to State House News.