Gov. Robert F. McDonnell’s bid to overhaul transportation funding and secure his political legacy prevailed in the GOP-led House but remained in doubt after the evenly divided Senate deadlocked over its version at the midpoint of the General Assembly’s annual session.