You are quite right that it is thermodynamically impossible to heat something hotter than the surface of the sun using only sunlight and passive optical elements (such as a filter that would block some wavelengths). Heat would then be spontaneously flowing from somewhere less hot to somewhere hotter, and that doesn’t happen.
The roadblocks you will encounter when trying to do this don’t really have anything to do with the spectrum of light coming from the sun—you can heat something to pretty high temperature in a microwave oven, even though the wavelength of the radiation that does the heating corresponds to the peak emission of a very, very cold blackbody. It’s all about the intensity of the radiation.
It is impossible to passively concentrate light to an intensity higher than the source. Having used a magnifying glass to start a fire, you might think that you just need a big enough magnifying glass. But as you use a bigger and bigger magnifying glass to focus the sunlight, the image you form of the sun gets bigger and bigger too, spreading the increased power over a larger area. And the hottest it can ever get is the temperature of the sun. If you filter out some of the light, it’s less hot than that.