UK minister resigns amid Brexit row with government