The Australian government said on Monday that Google and Facebook would have to pay media outlets for news content in the country, part of an emerging global effort to rescue local publishers by moving to compel tech giants to share their advertising revenue.