York and North Yorkshire is to receive £10million of government money to take part in a trial to get people back to work.