Treasurer Jim Chalmers has approved Qatar Airways taking a 25 per cent stake in Virgin Australia but has installed a couple of safeguards as well.