Controversial refugee bill clears Commons