D.C. United secured a late win against Orlando City in what was a successful debut for head coach Wayne Rooney.