Road, rail, housing funds packed into new transportation law