Constraint-Based Multi-Agent Reinforcement Learning for Collaborative Tasks