Cover tightly with foil and bake for about 1 1/2 hours, until the onions are very tender. Meanwhile, in a small skillet, toast the fennel seeds over moderate heat until fragrant, about 3 minutes.