Leeds United moved into the Sky Bet Championship top six with a 2-1 victory over Middlesbrough in Aitor Karanka's first game as Boro boss.