The Senate unanimously approved a bill that would prevent N.C. 540 from taking a controversial route through the middle of Garner, as well as a measure allowing jetties to prevent erosion in coastal inlets.