A British teenager has been jailed for three years after he rammed a police motorcycle, knocking the officer to the ground.