Barnsley Metropolitan Borough Council is set to receive almost £4m funding to help out of work residents find sustainable jobs.