Minister supports plan to fix trains, due by end of 2017