Rupert Murdoch and the British government agreed to refer his bid for broadcaster BSkyB to regulators, opening a lengthy review in the hope of taking the sting from a phone-hacking scandal threatening the buyout.