Rangers secured a controversial win against Livingston with a late VAR goal, extending their winning streak in the Scottish Premiership.