Works worth £165,000 to improve a York junction said to be in the worst condition of any maintained by the council have been approved.