An $840 million pledge by the federal government has been hailed as "the largest investment in remote communities we have ever seen".