Pragmatic Instruction Following and Goal Assistance via Cooperative Language-Guided Inverse Planning