For assuredly, I say to you, till heaven and earth pass away, one jot or one tittle will by no means pass from the law till all is fulfilled.
When the new heaven and earth comes to each person, that is when the jots and tittles pass. That is why Jesus told them to keep following the law, because he hadn't yet established HIS church. He established the new heaven and new earth (the New Jerusalem bride), and for each person that enters the new heaven and earth, the jots and tittles pass.
Jesus Christ is the end of the law for righteousness in all who believe.