Have you seen the template for that kind of puzzle?
Hit New, type physics in the searchbox, and the first one, Physics Puzzle.
You can turn on "Prevent Rotation" for each object but that's not much fun, if things tip too much, it should fall over.
Turn up "Angular Damping" to 1, it will keep rotations from going nuts.