Speeding by someone else and you driving in the right lane are two separate offences.
Why do you think that what you did should be legal because you 'think' you can potentially obstruct them from committing their offence (that's how I read it anyway) ?
Sorry, but I don't quite understand...