A former NIO minister has said it feels “f****** shaming” when he thinks about how the UK has treated Ireland in the past.