Royal Mail will pass into foreign ownership for the first time after the takeover was approved by the Government.