thnakum, you are not supposed to cross post! But since you seem to be a newbie to FT, I'll answer your question.
You will definitely not have any problem with your tablets. And given how many Indians bring semi-solid food items (like pickles) to the US, I doubt you will have any issues with your foam. It might make sense to attach a copy of your prescription to the box containing your cans of foam, just in case anyone opens up your suitcase and looks.