A US senator has proposed a bill to protect food companies from lawsuits alleging that their high-fat foods cause obesity.