Catholic birth-control case to be heard in Brooklyn court