How do you stop the sliding of rigid body objects?
You can use Enable Deactivation option and adjusting it's parameters:



It also helps to have the collision objects set as Passive.

What will also increase the simulation accuracy is number of simulation steps:



The more steps the less sliding in the end and the more accurate simulation (this is 5000 steps):





If you don't want to increase steps, you can also Bake the simulation to keyframes with Object > Animation > Bake Action and delete the keyframes in Dope Sheet Editor that you don't want.



You can also keyframe the animation tag on the rigid body to be checked in the start and in the end of simulation:



This will enable you to control the position and bypass simulation when the tag is on. Notice that during simulation the location (in N panel) of bricks doesn't change from starting position. You need to get the end location and rotation from word_matrix in the Console:

bpy.context.active_object.matrix_world.translation
bpy.context.active_object.matrix_world.to_euler()


And you keyframe the starting position and the end position.