An inmate who filmed himself having sex with a prison officer and leaked the footage on Snapchat has had his sentence increased after a successful Court of Appeal challenge