SPRINGFIELD, Ill. (CBS) — Lawmakers failed to pass an enhanced anti-bullying law due to some members’ religious concerns.

State Sen. Kyle McCarter (R-Lebanon) wants the bill to allow students to opt out of anti-bullying programs if the teachings conflict with their religious beliefs, specifically regarding homosexuality.

READ MORE: Seven Injured In West Town Police Chase

“This is wrong because there are anti-bullying programs that have an agenda to protect only one class of individuals,” he says.

LISTEN: WBBM Newsradio’s Alex Degman reports

READ MORE: Coronavirus In Illinois: 2,942 New Cases, 16 Additional Deaths

Bill proponents say such religious protections already exist in federal law.

The bill would have strengthened anti-bullying programs by forcing districts to outline what would happen to students if they’re caught bullying, and proponents contend it’s designed to encompass all bullying – not just anti-gay bullying.

Opponents such as the Illinois Family Institute don’t buy it – pointing to the House’s sponsor, openly gay State Rep. Kelly Cassidy (D-Chicago), plus backing from the gay rights group Equality Illinois.

MORE NEWS: Chicago Man Charged With Attempted Murder In Shooting Of Oak Park Police Officer

The measure failed by one vote, with 29 senators in favor, 12 senators voting no and 12 voting present. The measure needed 30 “aye” votes to pass. State Sen. Heather Steans (D-Chicago) put the bill on postponed consideration, which means it could still come up for debate before the legislature adjourns at the end of the month.