Belfast's Court of Appeal has overturned a ruling which has delayed a major upgrade to of one of the North's deadliest roads.