The president tweeted Republicans and Democrats should tie stricter background checks and immigration reform into a legislative package