Graeme McDowell became the first European to win the US Open in 40 years as he claimed victory at Pebble Beach.