The federal and state government will build nearly 500 social and affordable homes in Queensland's far north.