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: Chicago Weather: Winter Weather Advisory Issued For Illinois, 1-3 Inches Possible

“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: Bradley Police Officer Tyler Bailey Shot In The Line Of Duty Moved From ICU To Standard Care According To Statement From Family

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: Retired Kenosha Police Officer Found Dead After Being Reported Missing For a Week

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.