Wayne Rooney celebrated his new deal with a fine goal as Manchester United overcame a spirited Crystal Palace side 2-0 at Selhurst Park.