Louise Haigh has been appointed transport secretary by the new Prime Minister Sir Keir Starmer.