Costain has won a place on a framework agreement as one of three suppliers to Transport for London for upgrading rail infrastructure across the city.