A new bill that will make it more difficult for people with eating disorders to buy a compound that induces vomiting has passed both houses of the state Legislature and awaits the signature of Gov.