Paternal genes advise maternal immune cells on how to build the best womb for developing foetuses, researchers have found.