Simon Yates claimed a win in the final stage of the AlUla Tour to snatch overall victory with a close finish on Saturday.