Judge rules against Brooklyn Heights Association on Pier 6 development