An NHS nurse who sold drugs to his friends for chemsex sessions has been struck off the register – after narrowly avoiding jail.