The US senate has passed new food labelling legislation aimed at protecting consumers who have food allergies.