Elon Musk reaches a deal with US regulators over tweets he sent about taking Tesla private.