Judge in Brazil allows gay couple to adopt two girls