Federal regulators told banks to consider job loss, deportation and repayment risks when lending to borrowers without legal work authorization.