How are root nodules useful to plants?

How are root nodules useful to plants?