Phoenix officials have agreed to make critical safety upgrades to a railroad crossing that could be otherwise shut down this weekend.