Motherwell moved level on points with second-placed Aberdeen after beating Inverness 2-0 in the Scottish Premiership on Wednesday night.