Ruling may hurt enforcement of underage drinking law