A local Sheffield bus route blasted as “unreliable” and “often delayed” will get better after a £17million investment by the government, the Transport Secretary has said.