Overall I doubt the airlines will care much about it at all. Specially if you pass later at a good score.
The important thing is what you learned about yourself from the fails, why did you fail and how can you improve.
You can expect a question about this in a HR interview, where they want to see how you found improvements in yourself by this experience.
I know guys who failed ATPL's and now working for companies like VA and BA, so it's not a major issue. But do expect that you might be asked about it during an interview, and as long as you have good explanation it's not an issue. These things happen, and not end of the world. After any first job, nobody will ever ask to see your ATPL's ever again.