Rear wheel not spinning when the skewer is locked in
When you cleaned the rear hub, did you reassemble it in the right order?   Sounds like your axle is too far over, or there's possible a lock nut in the wrong place, so that when you cinch down the QR, the dropouts are touching the axle (OK) and the wheel hub (not OK)

If the wheel spins okay on its axle/bearings when off the bike, then something about fitting is making it bind.  Check your brakes and both the chainstay and seatstay clearance points when the wheel is fitted.  Hang the bike up and slowly spin the wheel looking at each point to see if the wheel is rubbing at some point - it may be out of true.