Motherwell recorded their third successive away victory in the Scottish Premier League with a 2-1 triumph over Dundee United at Tannadice.