The best way to ensure that science is bipartisan, that is if you mean politically neutral, is to rely on markets.
If you mean being supported by either side of the political aisle, then you're not necessarily asking for the best solution no matter the side who are lobbied by special interests including scientists wanting funds or jobs. There just may be a separate and different solution that is not from either side or group think.
Most science needs to remain free from the state. That is the best chance of advancement technologically.
“The power to declare war, including the power of judging the causes of war, is fully and exclusively vested in the legislature.” ~ James Madison, Father of the Constitution
“We do not believe in aggressive or preventive war. Such war is the weapon of dictators, not of free democratic countries like the United States.”~ Truman, Sept 1, 1950