Rory McIlroy shot a two-over-par 72 at Pinehurst No 2 in the second round of the US Open as he slipped back after starting the day tied for the lead.