Can we use a 9 speed rear derailleur on a 8 speed bike?
The pull ratio, which is the important bit, is the same for nearly all Shimano 6,7,8 and 9 speed derailleurs.  

Other things to look for when changing derailleurs are the capacity, minimum and maximum cog size. These will be fine for the swap you are proposing.