This is the only way I found.
Go to the phone app call history.
Touch the entry and hold down the finger
Copy number to clip board
Add it to contacts with a name such as "Spam Block"
(in future you can all add numbers to be blocked to the same contact)
Then in your Contacts app, use the ...