Altria will pay $500M to resolve IRS dispute