Dublin had to withstand a late Tyrone comeback to hold on for a narrow Lidl NFL Division 1 victory at O’Neill Park in Dungannon.