Several law firms have raked in millions of dollars in the last year in advising foreign governments on regulatory and policy issues, according to recent public filings.