The federal government will pay $2 million to settle a human rights class action brought by Indigenous Australians from the Ngaanyatjarraku community in Western Australia over allegedly discriminatory requirements for access to social security benefits.