FN har röstat igenom en historisk resolution om internationella skatteregler.