A defense of a pragmatist view of scientific laws