UK lawmakers can determine type of Brexit by amending law: minister