khan worked as a human rights solicitor until the 2005 general election when he was elected as an mp. he became the minister of state for transport from june 2009 to may 2010 and when ed miliband became leader of the labour party, he was made the shadow justice secretary.