The House of Lords has called on the UK government to revisit the dependants ban to help to attract more STEM talent.