Nonprofits go to court to recoup canceled solar grants