Off-duty deaths in service will be subject to inheritance tax after Labour MPs voted in favour of the raid affecting partners and children.