Queues have cleared after a crash on a major road in North Yorkshire.