Marigolds might have prevented the whiteflies from finding your tomatoes but now that they are there, you’ll need to spray.
Neem oil is an organic spray that will kill them though. Spray thoroughly making sure that every part of the plant is drenched…especially the undersides of the leaves. Spray just before sunset and do NOT spray in bright sunlight. Read and follow the direction on the product label.