A bill requiring the relocation of obscene or sexually explicit content in public and school libraries passed the Senate Thursday on a 27-20 vote.