Extending modules with injective or semisimple summands