A pattern of controlling behaviour in relationships will become a crime in Queensland after new passed state parliament.