Comey completed 3 tasks during his testimony, almost perfectly:
1-He opened up and paved the way for Mueller's investigation, thowing bones straight to him to continue moving forward with.
2-He called out publically for the white house tape recordings to be produced, if they even exist at all. The white house now has to produce them, say they never existed in the first place, or possibly get caught having deleted them. Investigators are now calling for them, and none of those 3 options are good for the white house.
3-He dared the white house to try and prosecute him, for "leaks". This was never even classified information, and Trump has already given away executive privilage by talking ab