A bridge over a railway line in Leeds is set to be demolished and rebuilt as part of plans to electrify the route.