The UK government says it is determined to overturn a vote by the upper house of parliament demanding the rights of EU citizens in Britain are protected.