Russian President Vladimir Putin has signed a law granting debt forgiveness to new army recruits who enlist to fight in Ukraine.