The 1935 Social Security Act primarily provided for the elderly through retirement benefits, but it also laid the groundwork for assistance programs for the unemployed and the disabled over time. Therefore, the best answer to your question would be:
All the above.
While the Act focused on the elderly initially, it did establish a framework that would eventually expand to include assistance for the unemployed and disabled.