House approves budget deal aimed at averting shutdown