Facebook Inc. plans to block people and publishers in Australia from sharing news, a move that pushes back against a proposed law forcing the company to pay media companies for their articles.

The threat escalates an antitrust battle between Facebook and the Australian government, which wants the social-media giant and Alphabet Inc.’s Google to compensate publishers for the value they provide to their platforms.

The legislation still needs to be approved by Australia’s Parliament. Under the proposal, an arbitration panel would decide how much the technology companies must pay publishers if the two sides can’t agree.