I happen to know a few lawyers who work in high tech. However, they appear to be mostly involved in patents and intellectual property. Nearly all of them have a bachelor’s degree in some high-tech-related field. One for example has a bachelor’s degree in electrical engineering. Another has a bachelor’s degree in computer science and worked as a software engineer for two or three years before going to law school. I also know someone who got a bachelor’s degree in mathematics and went to law school.
I have heard that admissions to law school is largely based on undergraduate GPA and LSAT score. However, I have also heard that people with an engineering degree get a small bump, because there are so many jobs available for lawyers who understand engineering.
Regarding philosophy, it seems to me that this involves logical thinking and being able to write well. These seem like skills that would be useful to a lawyer.
Generally yes I think that you have a sensible plan, as long as you can maintain a high GPA in these areas.
And if law school is the plan, then budget for a full 7 years of university. Even lawyers (and doctors) are better off if they can complete their university studies with little or no debt.