Lawsuit to block foreclosures in Minn. dismissed