If your B-2 visa is valid, you can still use it even if you have an expired passport. Do not remove it from your passport. You can still use the visa in your expired passport with your new passport when you want to visit the United States.