- The bill now goes to Gov. Pat Quinn, who says he will sign it
- President Obama hails the vote in his home state
- The state is now poised to become the 15th to legalize gay marriage
(CNN) -- Illinois is now poised to become the 15th state to allow same-sex marriage after legislation passed both houses of the state's General Assembly on Tuesday.
The bill now goes to Democratic Gov. Pat Quinn, who has said he will sign it.
The passage of the legislation "put our state on the right side of history," Quinn said.
President Obama also hailed the vote in his home state, saying he has "always believed that gay and lesbian Americans should be treated fairly and equally under the law."
Illinois previously offered civil unions, but not marriage, to same-sex couples. In addition to Illinois, same-sex marriage is legal in 14 states -- California, Connecticut, Delaware, Iowa, Maine, Maryland, Massachusetts, Minnesota, New Hampshire, New Jersey, New York, Rhode Island, Vermont and Washington -- as well as the District of Columbia. Colorado and Hawaii allow civil unions.
Same-sex marriage is banned in every state not mentioned above, except for New Mexico, which has no laws banning or allowing it.