Both branches included $400 million in the $11.3 billion infrastructure bond bill that the MBTA can use to perform required safety work.