Implement a single policy gradient update step for a tabular softmax policy over discrete actions.
You are given action preference parameters theta of shape (num_states, num_actions) that define a softmax policy: the probability of taking action a in state s is proportional to exp(theta[s, a]).
Given a batch of experience samples, each consisting of a state index, an action index, and a scalar weight (which could represent a return or an advantage), compute the policy gradient and update the preference parameters.
Your function should:
Use numerically stable softmax (subtract the max logit before exponentiation).
Return a tuple of (updated_theta, action_probs_list) where action_probs_list is a list of numpy arrays containing the softmax probabilities computed for each sample's state (before any update).