Two key West Midlands sites aimed at creating thousands of new jobs have had funding allocated to get them off the ground.