A historic bridge closed for almost two months after being damaged by a tanker has reopened ahead of schedule.