Legislation would provide amnesty to underage drinkers in emergencies