The House approved a $3.5 trillion federal budget on Wednesday in a vote closely following party lines.