A bill that sought to impose health warnings on sugary soft drinks has failed to become Californian law after it stumbled at the state assembly.