The chamber passed a bill on Tuesday for an amended penal code that kept the ban on sex between men , but included other changes such as legalizing oral and anal sex between heterosexual adults , a spokeswoman at the home affairs ministry said .