Judge excoriates SEC for rushed case that landed Cayman bank in bankruptcy