The UK government remains committed to minimum pricing and still believes the measure is legal under European law, a minister has said.