The funding will support up to 332 beds for mental health patients in hospitals across four rural communities.