The Senate on Tuesday approved a bipartisan, $250 billion bill boosting government spending on technology research and development amid rising competition from China and other nations.